#include <stdio.h>
#define N 80

void MyStrcat(char *dstStr, char *srcStr);

int main() {
    char s[N], t[N];
    printf("Input a string:\n");
    gets(s);
    printf("Input another string:\n");
    gets(t);
    MyStrcat(s, t);
    printf("Concatenate results:%s\n", s);
    return 0;
}

void MyStrcat(char *dstStr, char *srcStr) {
    while (*dstStr != '\0') {
        dstStr++;
    }
    while (*srcStr != '\0') {
        *dstStr = *srcStr;
        srcStr++;
        dstStr++;
    }
    *dstStr = '\0'; // 添加字符串结束标志
}
